package com.disgnpattern.learn.chapter8.factorymethod;

/**
 * @author dxy
 * @version 1.0
 * @date 2021/10/22 17:31
 * @decripton 测试
 * @mail victorydeng@163.com
 */
public class FactoryMethodTest {
    public static void main(String[] args) {
        IFactory factory = new UndergraduateFactory();
        factory.createLeifeng().wash();
        IFactory factory2 = new VolunteerFactory();
        factory2.createLeifeng().wash();
    }
}
